package com.llb666.e.shop.infracore.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 支付宝支付配置.
 *
 * @author liulb666
 */
@Component
@ConfigurationProperties(prefix = "alipay")
@PropertySource("classpath:properties/alipay.properties")
@Data
public class AliPayConfig {

    /**
     * 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账
     */
    private String appId;
    /**
     * 商户私钥，您的PKCS8格式RSA2私钥
     */
    private String merchantPrivateKey;
    /**
     * 支付宝公钥:
     * 查看地址：https="//openhome.alipay.com/platform/keyManage.html.
     */
    private String alipayPublicKey;
    /**
     * 服务器异步通知页面路径.
     */
    private String notifyUrl;
    /**
     * 页面跳转同步通知页面路径.
     */
    private String returnUrl;

    /**
     * 签名方式.
     */
    private String signType;
    /**
     * 字符编码格式.
     */
    private String charset;
    /**
     * 支付宝网关.
     */
    private String gatewayUrl;

}
